import time

import cv2

# from matplotlib import pyplot as plt

cs = cv2.imread('./images/cs.png', 0)#测试
zd = cv2.imread('./images/zd.jpg', 0)#组队
yqfy = cv2.imread('./images/yqfy.png', 0)#妖气封印
jr = cv2.imread('./images/jr.jpg', 0)#进入
zb = cv2.imread('./images/zb.jpg', 0)#准备
js = cv2.imread('./images/js.jpg', 0)#结束
sb = cv2.imread('./images/sb.jpg', 0)#失败
yh = cv2.imread('./images/yh.jpg', 0)#御魂
ts = cv2.imread('./images/ts.jpg', 0)#探索
bqds = cv2.imread('./images/bqds.jpg', 0)#八岐大蛇
zd1 = cv2.imread('./images/zd1.png', 0)#组队1
cjdw = cv2.imread('./images/cjdw.png', 0)#创建队伍
cj = cv2.imread('./images/cj.png', 0)#创建
kszd = cv2.imread('./images/kszd.png', 0)#开始战斗
qd = cv2.imread('./images/qd.png', 0)#确定
jjtp = cv2.imread('./images/jjtp.png', 0)#结界突破
jg = cv2.imread('./images/jg.png', 0)#jg
yq = cv2.imread('./images/yq.png', 0)#邀请
di2zhang = cv2.imread('./images/di2zhang.png', 0)#第二章

di3zhang = cv2.imread('./images/di3zhang.png', 0)#第二章
di4zhang = cv2.imread('./images/di4zhang.png', 0)#第二章
di5zhang = cv2.imread('./images/di5zhang.png', 0)#第二章

di20zhang = cv2.imread('./images/di20zhang.png', 0)#第二章
di21zhang = cv2.imread('./images/di21zhang.png', 0)#第二章
di22zhang = cv2.imread('./images/di22zhang.png', 0)#第二章
di23zhang = cv2.imread('./images/di23zhang.png', 0)#第二章

ts1 = cv2.imread('./images/ts1.png', 0)#探索
daotubiao = cv2.imread('./images/daotubiao.png', 0)#怪物刀图标
daotubiao1 = cv2.imread('./images/daotubiao1.png', 0)#怪物BOOS刀图标
zhanliping = cv2.imread('./images/zhanliping.png', 0)#战利品
huodejiangli = cv2.imread('./images/huodejiangli.png', 0)#获得奖励
zaizhanchang = cv2.imread('./images/zaizhanchang.png', 0)#在战场
haifangzhu = cv2.imread('./images/haifangzhu.jpg', 0)#海坊主
sx = cv2.imread('./images/sx.png', 0)#刷新
tz = cv2.imread('./images/tz.png', 0)#挑战
xiaomao = cv2.imread('./images/xiaomao.png', 0)#刷新

jiejietupo = cv2.imread('./images/jiejietupo.png', 0)#刷新
liuxunzhang = cv2.imread('./images/liuxunzhang.png', 0)#刷新
feiliuxing = cv2.imread('./images/feiliuxing.png', 0)#刷新
jieshu = cv2.imread('./images/jieshu.png', 0)#刷新
qr1 = cv2.imread('./images/qr1.png', 0)#刷新
jieshou = cv2.imread('./images/jieshou.png', 0)#刷新
jingyanman = cv2.imread('./images/jingyanman.png', 0)#刷新
qx = cv2.imread('./images/qx.png', 0)#刷新
douji = cv2.imread('./images/douji.png', 0)#刷新
baoxiang = cv2.imread('./images/baoxiang.png', 0)#刷新
tanshouweizhi = cv2.imread('./images/tanshouweizhi.png', 0)#刷新
chahao = cv2.imread('./images/chahao.png', 0)#刷新
shoudong = cv2.imread('./images/shoudong.png', 0)#刷新
doujijieshu = cv2.imread('./images/doujijieshu.png', 0)#刷新
meijuanle = cv2.imread('./images/meijuanle.png', 0)#刷新
yinlangniaomeikai = cv2.imread('./images/yinlangniaomeikai.png', 0)#刷新
fanghui = cv2.imread('./images/fanghui.png', 0)#刷新
qr = cv2.imread('./images/qr.png', 0)#刷新
guanyouxi = cv2.imread('./images/guanyouxi.png', 0)#刷新

danjujieshu=0
时间下限=2
时间上限=30
time3 = time.time()

# import 探索, 接受任务,找到勋章位置并进攻,个人团队选择突破,准备,刷新,刷新确定,没有六星勋章就刷新,单局时间,失败,结束点罐子,结界突破进入,选择位置点击
# from 子函数 import 个人团队选择突破,战利品点击,定时休息,战场打怪,探索进入打怪,选择章节,经验满,宝箱
from 子函数.yinru import cs,zd ,yqfy,jr ,zb ,js ,sb ,yh ,ts ,bqds ,zd1 ,cjdw ,cj ,kszd ,qd ,jjtp ,jg ,yq ,di2zhang,di3zhang ,di4zhang ,di5zhang
from 子函数.yinru import di20zhang ,di21zhang ,di22zhang ,di23zhang ,ts1 ,daotubiao ,daotubiao1 ,zhanliping ,huodejiangli ,zaizhanchang ,haifangzhu ,sx ,tz ,xiaomao
from 子函数.yinru import jiejietupo ,liuxunzhang,jieshu,danjujieshu,qr1,时间下限,时间上限,feiliuxing,jieshou,time3,jingyanman,qx,douji,baoxiang,tanshouweizhi
from 子函数.yinru import chahao ,shoudong,doujijieshu,meijuanle,yinlangniaomeikai,fanghui,qr,guanyouxi